<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .b{
            border: red solid 1px;
            height: 100px;
        }
        .i{
            width: 200px;
            height: 300px;
        }
    </style>
    <script>
        function f(){
            alert("body");
        }
        function ff(){
            alert("点击图片了img");
        }
    </script>
</head>
<body class="b" onclick="f()">
<img class="i" src="61.jpg" onclick="ff()" >
</body>
</html>